package day18.tarena.Thred;
public class MyFirstThred extends Thread{
	
	public void run(){
		for(int i=0; i<30;i++){
			System.out.println("run"+i);
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
	public static void main(String[] args) {
		MyFirstThred mf = new MyFirstThred();			//This thread state on "new".
		mf.start();			// The state is Runnable;
		mf.start();
		for(int i=0; i<30;i++){
			System.out.println("main"+i);
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}

}
